//
// Created by 11510 on 2024/6/13.
//
#include <iostream>
using namespace std;

class Line{
private:
    class Point{
    public:
        Point(int x,int y): _ix(x), _iy(y){}
        friend class Line;

        void getLine(const Line& rhs){
            /* 内部类可以直接访问外部类的私有成员 */
            rhs._pt1;
            rhs._line;
            Line::_line;
            _line;
        }

    private:
        int _ix;
        int _iy;
        static int _iz;
    };

    Point _pt1;
    Point _pt2;
    static int _line;

public:
    Line(int x1, int y1, int x2, int y2): _pt1(x1,y1), _pt2(x2,y2){}

    void getPoint(){
        /* 访问内部类的普通私有成员 */
        _pt1._ix;
        /* 访问内部类静态私有成员 */
        Point::_iz;
    }

};

/* 内部类静态成员初始化 */
int Line::Point::_iz = 0;
int Line::_line = 0;



void test0(){

}


int main() {
    test0();
    return 0;
}
